/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package define;

import java.awt.Graphics;
import java.net.*;
import java.util.*;
/**
 *
 * @author CONGMAN
 */
public class NguoiChoi extends game.GameObject{

    private ViTriNguoiChoi ViTri;
    private QuanBai[] dsQuanBai;
    private ArrayList<QuanBai> dsQuanBaiDaAn;
    private int DiemVanHienTai;
    private int DiemTong;
    private Socket Server;
    private Socket Client;
    private Thread Connection;
    private Thread Receive;


    public NguoiChoi()
    {
        ViTri  = ViTriNguoiChoi.Duoi;
        dsQuanBai = new QuanBai[13];
        for(int i = 0; i < 13; i++)
            dsQuanBai[i] = new QuanBai();
        dsQuanBaiDaAn = new ArrayList<QuanBai>();
        DiemVanHienTai = 0;
        DiemTong = 0;
        Server = null;
        Client = null;
        Connection = null;
        Receive = null;
    }

    public int[] LietKeBai()
    {
        int[] mang = new int[dsQuanBai.length];
        for(int i = 0 ; i < dsQuanBai.length; i++)
            mang[i] = dsQuanBai[i].getDoLon();
        return mang;
    }

    @Override
    public void draw(Graphics g)
    {}

    @Override
    public void update()
    {}
    /**
     * @return the ViTri
     */
    public ViTriNguoiChoi getViTri() {
        return ViTri;
    }

    /**
     * @param ViTri the ViTri to set
     */
    public void setViTri(ViTriNguoiChoi ViTri) {
        this.ViTri = ViTri;
    }

    /**
     * @return the dsQuanBai
     */
    public QuanBai[] getDsQuanBai() {
        return dsQuanBai;
    }

    /**
     * @param dsQuanBai the dsQuanBai to set
     */
    public void setDsQuanBai(QuanBai[] dsQuanBai) {
        this.dsQuanBai = dsQuanBai;
    }

    /**
     * @return the DiemVanHienTai
     */
    public int getDiemVanHienTai() {
        return DiemVanHienTai;
    }

    /**
     * @param DiemVanHienTai the DiemVanHienTai to set
     */
    public void setDiemVanHienTai(int DiemVanHienTai) {
        this.DiemVanHienTai = DiemVanHienTai;
    }

    /**
     * @return the DiemTong
     */
    public int getDiemTong() {
        return DiemTong;
    }

    /**
     * @param DiemTong the DiemTong to set
     */
    public void setDiemTong(int DiemTong) {
        this.DiemTong = DiemTong;
    }

    /**
     * @return the Server
     */
    public Socket getServer() {
        return Server;
    }

    /**
     * @param Server the Server to set
     */
    public void setServer(Socket Server) {
        this.Server = Server;
    }

    /**
     * @return the Client
     */
    public Socket getClient() {
        return Client;
    }

    /**
     * @param Client the Client to set
     */
    public void setClient(Socket Client) {
        this.Client = Client;
    }

    /**
     * @return the Connection
     */
    public Thread getConnection() {
        return Connection;
    }

    /**
     * @param Connection the Connection to set
     */
    public void setConnection(Thread Connection) {
        this.Connection = Connection;
    }

    /**
     * @return the Receive
     */
    public Thread getReceive() {
        return Receive;
    }

    /**
     * @param Receive the Receive to set
     */
    public void setReceive(Thread Receive) {
        this.Receive = Receive;
    }

    /**
     * @return the dsQuanBaiDaAn
     */
    public ArrayList<QuanBai> getDsQuanBaiDaAn() {
        return dsQuanBaiDaAn;
    }

    /**
     * @param dsQuanBaiDaAn the dsQuanBaiDaAn to set
     */
    public void setDsQuanBaiDaAn(ArrayList<QuanBai> dsQuanBaiDaAn) {
        this.dsQuanBaiDaAn = dsQuanBaiDaAn;
    }

}
